<div style="width:80%;margin-left:20px; padding:10px; border:1px solid #ccc">
  <%= render :partial => "/areas/area", :collection => @areas %>
  <div id="add-area-<%= @parent.blank? ? 0 : @parent.id %>">
    <%= link_to "+ 添加一个新地区", new_area_url(:pid => (@parent.blank? ? 0 : @parent.id),
                                          :height => 200,
                                          :width => 250), 
                             :class => "thickbox",
                             :title => "添加地区" %> 
    <% unless @parent.blank? -%>| <a href="javascript:void(0)" onclick="$('#sub-area-<%= @parent.id %>').hide()">隐藏</a><% end -%>
  </div>
</div>